Package com.fsf.news.utils
Class CollectionUtilsTest
java.lang.Object
com.fsf.news.utils.CollectionUtilsTest
Tests for the CollectionUtils class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Stream<Collection<?>> Provides test data for the testIsEmpty method.(package private) voidtestIsEmpty(Collection<?> input) Tests that a collection is considered empty if it is null or contains no elements.(package private) static Stream<Collection<?>> Provides test data for the testIsNotEmpty method.(package private) voidtestIsNotEmpty(Collection<?> input) Tests that a collection is not considered empty if it is not null or contains elements.
-
Constructor Details
-
CollectionUtilsTest
CollectionUtilsTest()
-
-
Method Details
-
testIsEmpty
Tests that a collection is considered empty if it is null or contains no elements.- Parameters:
input- the input collection
-
testIsEmpty
Provides test data for the testIsEmpty method.- Returns:
- A stream of test data
-
testIsNotEmpty
Tests that a collection is not considered empty if it is not null or contains elements.- Parameters:
input- the input collection
-
testIsNotEmpty
Provides test data for the testIsNotEmpty method.- Returns:
- A stream of test data
-